package com.rongc.client.freight.base.model;

import com.rongc.client.core.utils.DateUtil;
import com.rongc.client.core.utils.StringUtils;
import com.rongc.client.freight.base.view.widget.wheelwidget.model.IPickerViewData;

import java.util.ArrayList;
import java.util.Calendar;


/**
 * Created by Bruce on 2017/7/9.
 */
public class ProvinceList {

    private static ArrayList<ProvinceBean> options1Items = new ArrayList<>();
    private static ArrayList<String> options2Items = new ArrayList<>();
    private static ArrayList<String> options3Items = new ArrayList<>();



    public static ArrayList<ProvinceBean> getOptions1Items(){
        options1Items.clear();

        String str1 = DateUtil.getCurrentDate(DateUtil.dateFormatYMD);
        String str2 = DateUtil.getCurrentDateByOffset(DateUtil.dateFormatYMD, Calendar.DAY_OF_MONTH,1);
        String str3 = DateUtil.getCurrentDateByOffset(DateUtil.dateFormatYMD, Calendar.DAY_OF_MONTH,2);
//        str1 = DateUtil.formatDateStr3Desc(str1,DateUtil.dateFormatYMDHMS,DateUtil.dateFormatMD);
//        str2 = DateUtil.formatDateStr3Desc(str2,DateUtil.dateFormatYMDHMS,DateUtil.dateFormatMD);
//        str3 = DateUtil.formatDateStr3Desc(str3,DateUtil.dateFormatYMDHMS,DateUtil.dateFormatMD);
        options1Items.add(new ProvinceBean(0,str1,"今天",""));
        options1Items.add(new ProvinceBean(1,str2,"明天",""));
        options1Items.add(new ProvinceBean(2,str3,"后天",""));


        return options1Items;

    }


    public static ArrayList<String> getOptions2Items(){
        options2Items.clear();

        for (int i = 0;i < 24;i++){
            String temp = StringUtils.makeGdPeriod(i);
            options2Items.add(temp);
        }

        return options2Items;

    }


    public static ArrayList<String> getOptions3Items() {
        options3Items.clear();
        for (int i = 0; i < 60; ) {
            options3Items.add(StringUtils.makeGdPeriod(i));
            i += 15;
        }

        return options3Items;

    }
}
